home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / A-B / ButtonStax.cpt / Region Buttons / card_5702.txt < prev    next >
Text File  |  1989-02-26  |  768b  |  22 lines

  1. -- card: 5702 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2722
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 14
  9. ----- text -----
  10. Creating Buttons
  11.  
  12. -- part contents for background part 15
  13. ----- text -----
  14. 10
  15.  
  16. -- part contents for background part 13
  17. ----- text -----
  18. Currently, buttons are created only within the XCMD itself. The number of buttons created is specified by the constant 'NUMBER_OF_BUTTONS'. When NewRgn is called, it performs a loop from 1 to the number of buttons you have specified. Within the loop, it makes a call to the routine:
  19.  
  20. FUNCTION NewButton(ButtonNum:integer):RgnHandle;
  21.  
  22. It is up to this routine to create the region of the button (based on the number of the button specified) and return it back to the main loop.